//
//  BannerInfo.swift
//  SwiftDemo
//
//  Created by 硕星 on 2019/4/22.
//  Copyright © 2019 ty. All rights reserved.
//

import Foundation
import ObjectMapper

class BannerBean: Mappable {
    
    
    /**
     "id": "54",
     "orderIndex": "1"  #排序,
     "title": "幻灯片1",
     "pic": "https://changju.sz-tch.cn/djdp/Upload/201812/5c13c360e42d4.jpg"  #缩略图,
     "url": "http://baidu.com"  #外部链接,
     "type": "0"  #分类
     **/
    var id:UInt?
    var orderIndex:Int?
    var title:String?
    var pic:String?
    var url:String?
    var type:Int?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        id <- map["id"]
        orderIndex <- map["orderIndex"]
        title <- map["title"]
        pic <- map["pic"]
        url <- map["url"]
        type <- map["type"]
    }
}

class BannerInfo: Mappable {
    
    
    var msg:String?
    var data:[BannerBean]?
    
    required init?(map: Map) {
    }
    
    func mapping(map: Map) {
        msg <- map["msg"]
        data <- map["data"]
    }
    
    
}
